import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/api/doctors/list',
    method: 'get',
    params
  })
}
export function updateDoctorAudit(data) { // 审核医生
  return request({
    url: '/api/doctors/updateDoctorAudit',
    method: 'post',
    data
  })
}
export function updateDoctorStatus(data) { // 启用/禁用医生
  return request({
    url: '/api/doctors/updateDoctorStatus',
    method: 'post',
    data
  })
}
 export function getDoctorDetail(id) { // 传入医生id，获取医生详情
   return request({
     url:  '/api/doctors/info',
     method: 'get',
     params: { id }
   })
 }

